{% extends "../base.html" %}

{% block head %}
<title>账号设置 - {{current_user["nick_name"]}}</title>
<style>
.wrapper{width:960px;}
</style>
{% end %}

{% block content %}
<h1 style="margin-left:0px;border-bottom:1px dashed #dedede;padding:5px;" class="mb10">{{current_user["nick_name"]}}的账号</h1>
<div id="main-content">
<form action="/accounts/basic" method="POST" >
<table style="clear:both" width="100%" align="center" cellpadding="5">
    <tr>
        <td class="m" valign="top" align="right">名　号: </td>
        <td valign="top">
			<input name="nick_name" type="text" size="15" class="text" style="width:160px" maxlength="15" value="{{current_user["nick_name"]}}"/>
			<br/>名号30天内只能修改一次。<br/>
        </td>
    </tr>

    <tr>
        <td class="m" valign="top" align="right">我的域名:</td>
        <td valign="top">
		http://www.mielove.com/{% if current_user["domain"] %}<strong>{{current_user["domain"]}}</strong>
		{% else %}<input name="domain" type="text" size="15" class="text" style="width:80px;height:18px;line-height:18px;margin-left:0px;padding-left:1px;" maxlength="15" value=""/>
		<br/>4至20位字符，非全数字，不能包含特殊符号。<br/>
		{% end %}
        </td>
    </tr>

    <tr><td class="m" valign="top" align="right">头　像:</td>
    
    <td valign="top"><img src="http://img3.douban.com/icon/ul1303674-72.jpg" style="margin:10px;float:left"/>
        <div style="margin:10px;float:left"><img src="http://img3.douban.com/icon/u1303674-72.jpg"/><br/>头像图标</div>
         <a href="/accounts/user_icon/"  style="margin:10px;float:left">更新</a></p>
     <br/><br/></td></tr>


    <tr><td class="m" valign="top" align="right">性别:</td>
    <td valign="top">
     <input type="radio" name="gender" value="0"  {% if current_user["gender"]==0 %} checked {% end %}/> 女 <input type="radio" name="gender"  {% if current_user["gender"]==1 %} checked {% end %} value="1"/> 男
    <br/>
	</td></tr>

    <tr>
        <td class="m" align="right">登录邮箱: </td>
        <td valign="top">
                <span>{{current_user["email"]}}</span>
                    <a href="/accounts/emailchange">
                        更改
                    </a>
        </td>
    </tr>
    <tr>
        <td class="m" align="right"></td>
        <td>
            <input type="checkbox" name="cannotfind"  value="1"  {% if current_user["cannotfind"] %} checked {% end %}/>
            知道我的IM和Email地址也搜不到我
        </td>
    </tr>
    
    <tr>
        <td class="m" align="right">登录密码: </td>
        <td valign="top">
            <a href="/accounts/editpassword">更改</a>
        </td>
    </tr>

        <tr>
            <td class="m" align="right">QQ号:</td>
            <td>未绑定&nbsp;
            <a href="/accounts/phone/bind?ck=I-kg">立即绑定</a>
            </td>
        </tr>
    <tr>
        <td></td>
        <td><span class="bn-flat">
		{% raw  xsrf_form_html() %}
		<input name="submit" type="submit" value="更新设置" tabindex="8"></span></td>
    </tr>

    </table>
	</form>
	</div>
	<div id="main-side">
		
    <h2>寻找“个人介绍”或“邮件提醒”设置？</h2>

去<a href="/">我的咩乐</a>，个人介绍可以直接编辑，邮件提醒位于名号下方的“设置”里
<br/>
	</div>
{% end %}